#include <stdio.h>

int main()
{
    float x;
    float *realPtr = &x;
    long n;

    //要么强转要么设置为一样类型
    long *integerPtr = &n;
    integerPtr = (long *)realPtr;

    return 0;
}